package com.qfedu.aunt.commons.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaobobo
 * @since 2022-11-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_behavior")
@ApiModel(value="Behavior对象", description="")
public class Behavior implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "行为id")
    @TableId(value = "behavior_id", type = IdType.ID_WORKER_STR)
    private String behaviorId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "模块名字")
    private String modelName;

    @ApiModelProperty(value = "方法名字")
    private String methodName;

    @ApiModelProperty(value = "状态:0:开始调用 2：调用成功 3：调用失败  4：未响应")
    private Integer status;

    @ApiModelProperty(value = "方法传递参数")
    private String param;


    @TableLogic     //这个表示的是逻辑删除
    private Integer deleted;

    @Version
    private Integer version;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
